import request from "../utils/request";
//用户列表
export const getUserListApi = () => request.get("/user/list");
// 获取管理员权限e
export const getAdminListApi = () => request.get("/admin/list");
//新增管理员
export const postAdminItemApi = (params) => request.post("/admin/add", params);
//获取管理员信息
export const getAdminItemApi = (adminname) =>
    request.get("/admin/detail", {
        params: {
            adminname,
        },
    });
//更新管理员信息
export const updateAdminItemApi = (params) =>
    request.post("/admin/update", params);
//删除管理员信息
export const deleteAdminItemApi = (adminid) =>
    request.post("/admin/delete", { adminid });